'use strict';

angular.module('myApp.view2', ['ngRoute'])

    .config(['$routeProvider', function ($routeProvider) {
        $routeProvider.when('/view2', {
            templateUrl: 'views/view2/view2.html',
            controller: 'View2Ctrl'
        });
    }])

    .controller('View2Ctrl', ["$scope", "$cacheFactory", function ($scope, $cacheFactory) {
        /*
        var cache = $cacheFactory.get('cache01');
        var info = $cacheFactory.info()//所有的键值对
        //$cacheFactory.removeAll();删除所有的键值对
        var name = cache.get('name');
        console.log(name);
        */
    }]);